  @include('admin.header');
  <div class="layui-body">
 <!-- 内容主体区域 -->
   <form class="layui-form" method="post" style="width:500px;margin-top:50px" action="/weixinapp/public/index.php/admin/users/dochange">
	  <div class="layui-form-item">
	    <label class="layui-form-label">用户名</label>
	    <div class="layui-input-block">
	      <input type="text"  lay-verify="required" autocomplete="off" value="<?php echo $userinfo['username']?>" class="layui-input" name="username">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">手机号</label>
	    <div class="layui-input-block">
	      <input type="text" name="phone" lay-verify="required" value="<?php echo $userinfo['phone']?>" autocomplete="off" class="layui-input" >
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">快递单号</label>
	    <div class="layui-input-block">
	      <input type="text" name="odd_number" lay-verify="" value="<?php echo $userinfo['odd_number']?>" autocomplete="off" class="layui-input" >
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">收货地址</label>
	    <div class="layui-input-block">
	      <input type="text" name="address" lay-verify="required" value="<?php echo $userinfo['address']?>" autocomplete="off" class="layui-input" >
	    </div>
	  </div>
	 <div class="layui-form-item">
	    <label class="layui-form-label">发货状态</label>
	    <div class="layui-input-block">
	      <select name="interest" lay-filter="aihao" class="codestatus">
	        <option value="0">未发货</option>
	        <option value="1">已发货</option>
	      </select>
	    </div>
     </div>
	  <input type="hidden" name="userid" value="<?php echo $userinfo['id'];?>">
	  <input type="hidden" id="codestatus" value="<?php echo $userinfo['code'];?>">
	  <div class="layui-form-item">
	    <div class="layui-input-block">
	      <button class="layui-btn" lay-submit="" lay-filter="demo1">确认修改</button>
	    </div>
	  </div>
  <form>
  <div class="layui-footer">
    © layui.com - 底部固定区域
  </div>
</div>
</body>
</html>
<script src="/weixinapp/public/layui/layui/layui.js"></script>
<script src="/weixinapp/public/js/jquery-1.10.1.min.js"></script>
<script>
layui.use('element', function(){
  var element = layui.element;
  
});

layui.use(['form', 'layedit', 'laydate'], function(){
  var form = layui.form
  ,layer = layui.layer
  ,layedit = layui.layedit
  ,laydate = layui.laydate;

 });

$(function(){
  var kid=$("#codestatus").val();
  $(".codestatus").val(kid);
})



</script>